package com.example.wallpaperapp.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;

import com.example.wallpaperapp.R;
import com.example.wallpaperapp.utils.ImageUtil;

public class TestActivity extends AppCompatActivity {
ImageView imageView;
Bitmap bitmap;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        ImageUtil util = new ImageUtil();
        bitmap = util.returnBitMap("http://bgashare.bingoogolapple.cn/refreshlayout/images/staggered3.png");
        imageView = findViewById(R.id.image);
        imageView.setImageBitmap(bitmap);
    }
}